<%-- 
    Document   : talk2
    Created on : 2014/8/12, 下午 04:32:00
    Author     : Benny
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Talk2</title>
    </head>
    <body>
        <h1>巨匠聊天室</h1>
        <h2>新增聊天內容</h2>
        <hr>
        <form action="talkServlet" method="post" target="聊天內容">
            <%= session.getAttribute("name") %>:<input type="text" name="mes">
            <input type="submit" value="說話">
        </form>
        <hr align="left" width="300">
        <iframe src="talk3.jsp" width="300" height="300" id="聊天內容" name="聊天內容"></iframe>
        <script>
            setInterval(function(){document.getElementById("聊天內容").src="talk3.jsp")}, 3000);
        </script>
    </body>
</html>
